package com.rtwo.config;

import net.sf.ehcache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by hasee on 2017/6/12.
 */
@Configuration
public class EhcacheConfig {

    @Bean
    public CacheManager ehcacheManager(){
        System.out.println("cacheManager初始化成功");
        return CacheManager.create();
    }
}
